import request from '@/utils/request'
import request1 from "../../utils/request1";
// 查询产品方案列表
export function listProductData(query) {
  return request({
    url: '/insurance/productData/list',
    method: 'get',
    params: query
  })
}
// 查询产品方案列表
export function plan_list(query) {
  return request1({
    url: 'Insurance/plan_list',
    method: 'get',
    params: query
  })
}

// 查询产品方案列表
export function listProductData1(query) {
  return request1({
    url: '/Insurance/plan_add_edit',
    method: 'get',
    params: query
  })
}
// 查询产品方案详细
export function getProductData(id) {
  return request({
    url: '/insurance/productData/' + id,
    method: 'get'
  })
}

// 新增产品方案
export function addProductData(data) {
  return request({
    url: '/insurance/productData',
    method: 'post',
    data: data
  })
}
// 新增产品方案
export function addProductData1(data) {
  return request1({
    url: '/Insurance/plan_add_edit',
    method: 'post',
    data: data
  })
}

// 修改产品方案
export function updateProductData(data) {
  return request({
    url: '/insurance/productData',
    method: 'put',
    data: data
  })
}

// 删除产品方案
export function delProductData(id) {
  return request({
    url: '/insurance/productData/' + id,
    method: 'delete'
  })
}

// 导出产品方案
export function exportProductData(query) {
  return request({
    url: '/insurance/productData/export',
    method: 'get',
    params: query
  })
}

// 查询字典类型详细
export function getType(pid) {
  return request({
    url: '/insurance/productData/type/' + pid,
    method: 'get'
  })
}


